package cn.lingyangwl.agile.system.mapper;

import cn.lingyangwl.agile.system.model.entity.SysUserDeptRel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户和部门的关联Mapper接口
 * 
 * @author shenguangyang
 */
public interface SysUserDeptRelMapper extends BaseMapper<SysUserDeptRel> {
    
    /**
     * 新增用户和部门的关联
     * 
     * @param userDeptRel 用户和部门的关联
     * @return 结果
     */
    int insertUserDeptRel(SysUserDeptRel userDeptRel);

    /**
     * 批量插入
     * @param userDeptRels 关系集合
     * @return 结果
     */
    int batchUserDeptRel(@Param("list")List<SysUserDeptRel> userDeptRels);
}